package org.dfg.corejava.designPattern.thread.sync;

import java.nio.ByteBuffer;

public class SyncTestReader extends Thread {
	private ByteBuffer bb;

	public SyncTestReader(ByteBuffer bb) {
		this.bb = bb;
	}

	@Override
	public void run() {// 模拟读，尝试获取锁
		synchronized (bb) {
		}
		System.out.println("read end");
	}

}
